import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)
//导入底部导航路由的四个组件
import home from "@/components/home";
import vip from "@/components/vip" ;
import shopCar from "@/components/shopCar/shopCar";
import set from "@/components/set";
import newslist from "@/components/news/newslist";
import newsinfo from "@/components/news/newsinfo";
import photolist from "@/components/photos/photolist"
export default new Router({
  routes: [
  /*   {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld //这步路由可以定到数首页
    }, */
    {
      path: "/",
      redirect: "/home"
    },
    {
      path: "/home",
      component: home
    },
    {
      path: "/vip",
      component: vip
    },
    {
      path: "/shopCar",
      component: shopCar
    },
    {
      path: "/set",
      component: set
    },
    {
      path: "/news/newslist",
      component: newslist
    },
    {
      path: "/news/newsinfo/:id",
      component: newsinfo
    },
    {
      path: "/photo/photolist",
      component: photolist
    }
  ],
  linkActiveClass:"mui-active"
})
